#define REGISTER_AUTH_CONSTANT(__c) REGISTER_LONG_CONSTANT(#__c, __c, CONST_CS | CONST_PERSISTENT)

REGISTER_AUTH_CONSTANT(ACM_OK);
REGISTER_AUTH_CONSTANT(ACM_ACCESS_DENIED);
REGISTER_AUTH_CONSTANT(ACM_NEXT_CODE_REQUIRED);
REGISTER_AUTH_CONSTANT(ACM_NEXT_CODE_BAD);
REGISTER_AUTH_CONSTANT(ACM_NEW_PIN_REQUIRED);
REGISTER_AUTH_CONSTANT(ACM_NEW_PIN_ACCEPTED);
REGISTER_AUTH_CONSTANT(ACM_NEW_PIN_REJECTED);
REGISTER_AUTH_CONSTANT(ACM_SHELL_OK);
REGISTER_AUTH_CONSTANT(ACM_SHELL_BAD);
REGISTER_AUTH_CONSTANT(ACM_TIME_OK);
REGISTER_AUTH_CONSTANT(ACM_SUSPECT_ACK);
REGISTER_AUTH_CONSTANT(ACM_LOG_ACK);

/* client only values */
REGISTER_AUTH_CONSTANT(ACM_NO_SERVER);
REGISTER_AUTH_CONSTANT(ACM_INVALID_SERVER);

/* A/S V5.0 - new status values */
REGISTER_AUTH_CONSTANT(ACM_OK_2);
REGISTER_AUTH_CONSTANT(ACM_DOWNGRADE);
REGISTER_AUTH_CONSTANT(ACM_ACK_NAMELOCK);

REGISTER_AUTH_CONSTANT(OTPA_OK);                    /* success */
REGISTER_AUTH_CONSTANT(OTPA_ERR);                   /* fail */
REGISTER_AUTH_CONSTANT(OTPA_INVALID_PARAM);         /* bad parameter */
REGISTER_AUTH_CONSTANT(OTPA_ALLOC_MEM_FAILED);      /* memory allocation failed */
REGISTER_AUTH_CONSTANT(OTPA_ACF_INVALID_PARAM);     /* invalid server information in .acf */
REGISTER_AUTH_CONSTANT(OTPA_INVALID_REQ);           /* bad request */
REGISTER_AUTH_CONSTANT(OTPA_INVALID_PACKET);        /* bad packet */
REGISTER_AUTH_CONSTANT(OTPA_INIT_SOCKET_FAILED);    /* init SOCKET failed */
REGISTER_AUTH_CONSTANT(OTPA_SEND_REQ_FAILED);       /* send packet failed */
REGISTER_AUTH_CONSTANT(OTPA_RECV_ACK_FAILED);       /* receive packet failed */
REGISTER_AUTH_CONSTANT(OTPA_INVALID_USER);          /* invalid user */
REGISTER_AUTH_CONSTANT(OTPA_TOO_MANY_CONCURRENT_REQ); /* too many concurrent request */
REGISTER_AUTH_CONSTANT(OTPA_INVALID_SHAREKEY);      /* invalid share key of server and agent */
REGISTER_AUTH_CONSTANT(OTPA_NEED_SYNC);             /* OTP synchronization required */
REGISTER_AUTH_CONSTANT(OTPA_INVALID_PIN);           /* invalid PIN */
REGISTER_AUTH_CONSTANT(OTPA_SET_AUTHNUM_FAILED);    /* set the base authentication number failed */
REGISTER_AUTH_CONSTANT(OTPA_INVALID_TOKEN_KEY);     /* invalid token key */
REGISTER_AUTH_CONSTANT(OTPA_SET_PIN_FAILED);        /* set the new PIN failed on server side */
REGISTER_AUTH_CONSTANT(OTPA_INVALID_ACK);           /* invalid ACK */
REGISTER_AUTH_CONSTANT(OTPA_INVALID_ACF);           /* invalid agent configure file */
REGISTER_AUTH_CONSTANT(OTPA_TOKEN_LOST);            /* Token has been lost. */
REGISTER_AUTH_CONSTANT(OTPA_INVALID_PROTECT_TYPE);  /* invalid protected type of OTP */
REGISTER_AUTH_CONSTANT(OTPA_INVALID_OTP);           /* invalid OTP */
REGISTER_AUTH_CONSTANT(OTPA_TOKEN_LOCKED);	        /* token has LOGIN-Locked */
REGISTER_AUTH_CONSTANT(OTPA_INVALID_TOKEN_INFO);	  /* invalid token information */
REGISTER_AUTH_CONSTANT(OTPA_TOKEN_BINDED);	        /* token has binded before */
REGISTER_AUTH_CONSTANT(OTPA_BIND_TOKEN_FAILED);	    /* failed to bind user with the token */
REGISTER_AUTH_CONSTANT(OTPA_USER_NOTEXIST);	        /* user name doesn't exist */
REGISTER_AUTH_CONSTANT(OTPA_GET_TOKENINFO_FAILED);	/* get the token information failed */
REGISTER_AUTH_CONSTANT(OTPA_INVALID_USER_INFO);	    /* invalid user information */
REGISTER_AUTH_CONSTANT(OTPA_PIN_EMPTY);             /* the pin that you input is null */
REGISTER_AUTH_CONSTANT(OTPA_PIN_ISREQUIRED);	      /* verify PIN required */
REGISTER_AUTH_CONSTANT(OTPA_INVALID_OTP_FORMAT);	  /* OTP length exceed 6 digits */
REGISTER_AUTH_CONSTANT(OTPA_DBCORE_INTERNAL_ERROR);	/* DB error */
REGISTER_AUTH_CONSTANT(OTPA_INVALID_TOKENSN);	      /* Invalid token serial number */
REGISTER_AUTH_CONSTANT(OTPA_USER_INACTIVE);	        /* user is inactive */
REGISTER_AUTH_CONSTANT(OTPA_TOKEN_LOGOUT);	        /* token logout or disabled */
REGISTER_AUTH_CONSTANT(OTPA_TOKEN_EXPIRED);	        /* token expired */
REGISTER_AUTH_CONSTANT(OTPA_INVALID_HANDLE);        /* Invalid Handle */
REGISTER_AUTH_CONSTANT(OTPA_INVALID_SESSID);        /* Invalid Session ID */
REGISTER_AUTH_CONSTANT(OTPA_SESS_ESTED);            /* Session established */
REGISTER_AUTH_CONSTANT(OTPA_SESS_NOTESTED);         /* Session not established */
REGISTER_AUTH_CONSTANT(OTPA_SESS_PENDING);          /* Session is busy */
REGISTER_AUTH_CONSTANT(OTPA_SESS_NOTEXIST);         /* Session not exist */
REGISTER_AUTH_CONSTANT(OTPA_UIDTKSN_UNSET);         /* User name or token sn not set in the session */
REGISTER_AUTH_CONSTANT(OTPA_INVALID_CHLGE);         /* invalid user's challenge */
REGISTER_AUTH_CONSTANT(OTPA_SESS_NOTNXTOTP);	      /* the session is not the next otp state */
REGISTER_AUTH_CONSTANT(OTPA_SESS_NOTNDPIN);	        /* the session not need verify pin */
REGISTER_AUTH_CONSTANT(OTPA_SESS_NOTVRRES);         /* the session not need send response */
REGISTER_AUTH_CONSTANT(OTPA_AUMTHD_INVALID);        /* the method of auth is invalid */
REGISTER_AUTH_CONSTANT(OTPA_SUITE_INVALID);         /* the suite is invalid */
REGISTER_AUTH_CONSTANT(OTPA_UNKNOWN);	              /* unknown error */


#undef REGISTER_AUTH_CONSTANT